package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="t_tags")
public class TTags implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2971240577861363474L;
	
	private Long id;
	private String tagsName;
	private Date createTime;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="TAGS_NAME",length=64,nullable=true)
	public String gettagsName() {
		return tagsName;
	}

	public void settagsName(String tagsName) {
		this.tagsName = tagsName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME",nullable=true)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
